import { RouteRecordRaw } from 'vue-router'
import { RouterTransition } from '@/components/transition'

const routeName = 'listen'

const routes: Array<RouteRecordRaw> = [
  {
    path: '/listen',
    name: routeName,
    redirect: '/listen/index',
    component: RouterTransition,
    meta: {
      title: '听课',
      icon: 'icon-customerservice'
    },
    children: [{
      path: 'index',
      name: `${routeName}-index`,
      component: () =>
        import(
            /* webpackChunkName: "listen-listen" */ '@/views/listen/listen.vue'
        ),
      meta: {
        icon: '',
        title: '听课与评课'
      },
    }, {
      path: 'manage',
      name: `${routeName}-manage`,
      component: () =>
        import(
            /* webpackChunkName: "listen-manage" */ '@/views/listen/manage.vue'
        ),
      meta: {
        icon: '',
        title: '评价管理'
      },
    }]
  }

]

export default routes
